/**
 * 生成随机不重复ID
 * @param 
 * @returns {boolean}
 */
export function createRandomId(){
    return (Math.random()*10000000).toString(16).substr(0,4)+(new Date()).getTime()+Math.random().toString().substr(2,5);
}
/**
 * 解决弹框也拖拽
 */
export function undraggable(){
    [].forEach.call(document.querySelectorAll('.undraggablebox'), function (item) {
        item.addEventListener('pointerdown', (e) => {
            e.stopPropagation()
        })
        item.addEventListener('mousedown', (e) => {
            e.stopPropagation()
        })
    })
}
/**
 * 过滤获取id
 * @param arr
 */
export function filterID(arr){
    let newArr = [];
    arr.forEach(row => {
        newArr.push(row.id);
    });
    return newArr
}
